using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;

namespace ICP_MS.Plugin.Experiment;

public class FormStandard : Form
{
	private ExperimentDatas experiment = null;

	private ExperimentDB db = null;

	private List<IsotopeInfos> internalIsotopes = new List<IsotopeInfos>();

	private List<IsotopeInfos> internalStandards = new List<IsotopeInfos>();

	private ComboBox cbInternalSample = null;

	private ComboBox cbInternalStandard = null;

	private IContainer components = null;

	private Button btnRemoveInternalStandars;

	private Button btnAddInternalStandards;

	private Label label7;

	private DbufferGrid dgvInternalStandards;

	private Label label6;

	private DbufferGrid dgvInternalIsotopes;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn1;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn2;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn3;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn4;

	private DataGridViewTextBoxColumn dataGridViewTextBoxColumn5;

	private DataGridViewTextBoxColumn colInternalTechSymbol;

	private DataGridViewTextBoxColumn colInternalTechTech;

	private DataGridViewTextBoxColumn colInternalSymbol;

	private DataGridViewTextBoxColumn colInternalConcent;

	private DataGridViewTextBoxColumn colInternalUnits;

	private DataGridViewCheckBoxColumn colInternalProfile;

	public FormStandard()
	{
		InitializeComponent();
	}

	public void SetParams(ExperimentDatas experiment, ExperimentDB db)
	{
		this.experiment = experiment;
		this.db = db;
	}

	private void FormStandard_Load(object sender, EventArgs e)
	{
		base.WindowState = FormWindowState.Maximized;
		BindInternalStandards();
		experiment.isotopeChanged += experiment_isotopeChanged;
		ApplyResources();
	}

	private void ApplyResources()
	{
		Text = Lang.Txt("FormStandard.Title.Text");
		label6.Text = Lang.Txt("FormStandard.Element.Text");
		label7.Text = Lang.Txt("FormStandard.InterStd.Text");
		colInternalConcent.HeaderText = Lang.Txt("FormStandard.Columns.Concentration.Text");
		colInternalProfile.HeaderText = Lang.Txt("FormStandard.Columns.Method.Text");
		colInternalSymbol.HeaderText = Lang.Txt("FormStandard.Columns.Symbol.Text");
		colInternalTechSymbol.HeaderText = Lang.Txt("FormStandard.Columns.Symbol.Text");
		colInternalTechTech.HeaderText = Lang.Txt("FormStandard.Columns.Method.Text");
		colInternalUnits.HeaderText = Lang.Txt("FormStandard.Columns.Unit.Text");
	}

	private void FormStandard_FormClosing(object sender, FormClosingEventArgs e)
	{
		experiment.isotopeChanged -= experiment_isotopeChanged;
	}

	private void InitInternalStandards()
	{
		((DataGridView)(object)dgvInternalIsotopes).AutoGenerateColumns = false;
		((DataGridView)(object)dgvInternalStandards).AutoGenerateColumns = false;
		((DataGridView)(object)dgvInternalIsotopes).DataSource = internalIsotopes;
		((DataGridView)(object)dgvInternalStandards).DataSource = internalStandards;
	}

	private void experiment_isotopeChanged(object sender, EventArgs e)
	{
		BindInternalStandards();
	}

	private void BindInternalStandards()
	{
		internalIsotopes = new List<IsotopeInfos>();
		internalStandards = new List<IsotopeInfos>();
		foreach (IsotopeInfos isotopes in experiment.Isotopes)
		{
			if (isotopes.name == experiment.InternalSchema)
			{
				if (isotopes.inter)
				{
					internalStandards.Add(isotopes);
				}
				else
				{
					internalIsotopes.Add(isotopes);
				}
			}
		}
		if (internalStandards.Count == 0)
		{
			foreach (IsotopeInfos isotope in internalIsotopes)
			{
				isotope.technique = Lang.Txt("FormStandard.Istd.Technique.None.Text");
			}
		}
		else
		{
			foreach (IsotopeInfos isotope2 in internalIsotopes)
			{
				if (isotope2.technique == Lang.Txt("FormStandard.Istd.Technique.None.Text"))
				{
					isotope2.technique = Lang.Txt("FormStandard.Istd.Technique.Interpolation.Text");
				}
			}
		}
		((DataGridView)(object)dgvInternalIsotopes).AutoGenerateColumns = false;
		((DataGridView)(object)dgvInternalStandards).AutoGenerateColumns = false;
		((DataGridView)(object)dgvInternalIsotopes).DataSource = internalIsotopes;
		((DataGridView)(object)dgvInternalStandards).DataSource = internalStandards;
	}

	private void dgvInternalIsotopes_CurrentCellChanged(object sender, EventArgs e)
	{
		DbufferGrid dgv = (DbufferGrid)((sender is DbufferGrid) ? sender : null);
		if (((DataGridView)(object)dgv).CurrentCell == null || dgv.InCapture || ((DataGridView)(object)dgv).CurrentCell.ColumnIndex != colInternalTechTech.Index)
		{
			return;
		}
		int columnIndex = ((DataGridView)(object)dgv).CurrentCell.ColumnIndex;
		int rowIndex = ((DataGridView)(object)dgv).CurrentCell.RowIndex;
		cbInternalSample = new ComboBox();
		cbInternalSample.Parent = (Control)(object)dgv;
		Rectangle rect = ((DataGridView)(object)dgv).GetCellDisplayRectangle(columnIndex, rowIndex, cutOverflow: false);
		cbInternalSample.Left = rect.Left;
		cbInternalSample.Top = rect.Top;
		cbInternalSample.Width = rect.Width;
		cbInternalSample.Height = rect.Height;
		cbInternalSample.DropDownStyle = ComboBoxStyle.DropDownList;
		cbInternalSample.Items.Add(Lang.Txt("FormStandard.Istd.Technique.None.Text"));
		if (internalStandards.Count > 0)
		{
			cbInternalSample.Items.Add(Lang.Txt("FormStandard.Istd.Technique.Interpolation.Text"));
			foreach (IsotopeInfos standard in internalStandards)
			{
				cbInternalSample.Items.Add(standard.symbol);
			}
		}
		cbInternalSample.SelectedItem = ((DataGridView)(object)dgv).CurrentCell.Value.ToString();
		cbInternalSample.SelectedIndexChanged += delegate
		{
			internalIsotopes[((DataGridView)(object)dgv).CurrentCell.RowIndex].technique = cbInternalSample.SelectedItem.ToString();
			((DataGridView)(object)dgv).InvalidateCell(((DataGridView)(object)dgv).CurrentCell);
		};
	}

	private void dgvInternalIsotopes_CellLeave(object sender, DataGridViewCellEventArgs e)
	{
		DisposeBoxes();
	}

	private void DisposeBoxes()
	{
		if (cbInternalSample != null)
		{
			cbInternalSample.Visible = false;
			if (cbInternalSample != null)
			{
				cbInternalSample.Dispose();
			}
			cbInternalSample = null;
		}
	}

	private void dgvInternalStandards_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
	{
		int columnIndex = e.ColumnIndex;
		int num = columnIndex;
		if (num == 2)
		{
		}
	}

	private void dgvInternalStandards_CellLeave(object sender, DataGridViewCellEventArgs e)
	{
		if (cbInternalStandard != null)
		{
			cbInternalStandard.Visible = false;
			cbInternalStandard.Dispose();
		}
	}

	private void dgvInternalStandards_CurrentCellChanged(object sender, EventArgs e)
	{
		DataGridView dgv = sender as DataGridView;
		if (dgv.CurrentCell == null || dgv.CurrentCell.ColumnIndex != colInternalUnits.Index)
		{
			return;
		}
		int columnIndex = dgv.CurrentCell.ColumnIndex;
		int rowIndex = dgv.CurrentCell.RowIndex;
		cbInternalStandard = new ComboBox();
		cbInternalStandard.Parent = dgv;
		Rectangle rect = dgv.GetCellDisplayRectangle(columnIndex, rowIndex, cutOverflow: false);
		cbInternalStandard.Left = rect.Left;
		cbInternalStandard.Top = rect.Top;
		cbInternalStandard.Width = rect.Width;
		cbInternalStandard.Height = rect.Height;
		cbInternalStandard.DropDownStyle = ComboBoxStyle.DropDownList;
		cbInternalStandard.Items.Add("ppb");
		cbInternalStandard.Items.Add("ppq");
		cbInternalStandard.Items.Add("ppt");
		cbInternalStandard.Items.Add("ppm");
		cbInternalStandard.Items.Add("%");
		cbInternalStandard.SelectedItem = dgv.CurrentCell.Value.ToString();
		cbInternalStandard.SelectedIndexChanged += delegate
		{
			double num = internalStandards[rowIndex].concentration;
			switch (internalStandards[rowIndex].units)
			{
			case "%":
				num *= Math.Pow(10.0, 7.0);
				break;
			case "ppm":
				num *= Math.Pow(10.0, 3.0);
				break;
			case "ppb":
				num *= 1.0;
				break;
			case "ppt":
				num *= Math.Pow(10.0, -3.0);
				break;
			case "ppq":
				num *= Math.Pow(10.0, -6.0);
				break;
			}
			switch (cbInternalStandard.SelectedItem.ToString())
			{
			case "%":
				num *= Math.Pow(10.0, -7.0);
				break;
			case "ppm":
				num *= Math.Pow(10.0, -3.0);
				break;
			case "ppb":
				num *= 1.0;
				break;
			case "ppt":
				num *= Math.Pow(10.0, 3.0);
				break;
			case "ppq":
				num *= Math.Pow(10.0, 6.0);
				break;
			}
			internalStandards[rowIndex].concentration = num;
			internalStandards[rowIndex].units = cbInternalStandard.SelectedItem.ToString();
			dgv.InvalidateRow(rowIndex);
		};
	}

	private void btnAddInternalStandards_Click(object sender, EventArgs e)
	{
		if (((DataGridView)(object)dgvInternalIsotopes).SelectedCells == null || ((DataGridView)(object)dgvInternalIsotopes).SelectedCells.Count <= 0)
		{
			return;
		}
		List<int> rowIndexs = new List<int>();
		foreach (DataGridViewCell cell in ((DataGridView)(object)dgvInternalIsotopes).SelectedCells)
		{
			if (!rowIndexs.Contains(cell.RowIndex))
			{
				rowIndexs.Add(cell.RowIndex);
			}
		}
		foreach (int rowIndex in rowIndexs)
		{
			internalIsotopes[rowIndex].inter = true;
			internalIsotopes[rowIndex].concentration = 20.0;
			internalIsotopes[rowIndex].units = "ng/mL";
			internalIsotopes[rowIndex].profile = true;
		}
		BindInternalStandards();
		StandardChagnedNotify();
	}

	private void btnRemoveInternalStandars_Click(object sender, EventArgs e)
	{
		if (((DataGridView)(object)dgvInternalStandards).SelectedCells == null || ((DataGridView)(object)dgvInternalStandards).SelectedCells.Count <= 0)
		{
			return;
		}
		List<int> rowIndexs = new List<int>();
		foreach (DataGridViewCell cell in ((DataGridView)(object)dgvInternalStandards).SelectedCells)
		{
			if (!rowIndexs.Contains(cell.RowIndex))
			{
				rowIndexs.Add(cell.RowIndex);
			}
		}
		foreach (int rowIndex in rowIndexs)
		{
			internalStandards[rowIndex].inter = false;
			internalStandards[rowIndex].technique = Lang.Txt("FormStandard.Istd.Technique.Interpolation.Text");
			IEnumerable<IsotopeInfos> referenceIsotopes = internalIsotopes.Where((IsotopeInfos isotope) => isotope.technique == internalStandards[rowIndex].symbol);
			foreach (IsotopeInfos isotope2 in referenceIsotopes)
			{
				isotope2.technique = Lang.Txt("FormStandard.Istd.Technique.Interpolation.Text");
			}
		}
		BindInternalStandards();
		StandardChagnedNotify();
	}

	private void StandardChagnedNotify()
	{
		experiment.OnIstdChanged();
	}

	public void SelectedChanged(object sender, EventArgs e)
	{
		DisposeBoxes();
	}

	protected override void Dispose(bool disposing)
	{
		if (disposing && components != null)
		{
			components.Dispose();
		}
		base.Dispose(disposing);
	}

	private void InitializeComponent()
	{
		//IL_003a: Unknown result type (might be due to invalid IL or missing references)
		//IL_0044: Expected O, but got Unknown
		//IL_005b: Unknown result type (might be due to invalid IL or missing references)
		//IL_0065: Expected O, but got Unknown
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
		System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle();
		this.btnRemoveInternalStandars = new System.Windows.Forms.Button();
		this.btnAddInternalStandards = new System.Windows.Forms.Button();
		this.label7 = new System.Windows.Forms.Label();
		this.label6 = new System.Windows.Forms.Label();
		this.dgvInternalIsotopes = new DbufferGrid();
		this.colInternalTechSymbol = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.colInternalTechTech = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dgvInternalStandards = new DbufferGrid();
		this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn3 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn4 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.dataGridViewTextBoxColumn5 = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.colInternalSymbol = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.colInternalConcent = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.colInternalUnits = new System.Windows.Forms.DataGridViewTextBoxColumn();
		this.colInternalProfile = new System.Windows.Forms.DataGridViewCheckBoxColumn();
		((System.ComponentModel.ISupportInitialize)this.dgvInternalIsotopes).BeginInit();
		((System.ComponentModel.ISupportInitialize)this.dgvInternalStandards).BeginInit();
		base.SuspendLayout();
		this.btnRemoveInternalStandars.Location = new System.Drawing.Point(452, 316);
		this.btnRemoveInternalStandars.Margin = new System.Windows.Forms.Padding(4);
		this.btnRemoveInternalStandars.Name = "btnRemoveInternalStandars";
		this.btnRemoveInternalStandars.Size = new System.Drawing.Size(43, 31);
		this.btnRemoveInternalStandars.TabIndex = 14;
		this.btnRemoveInternalStandars.Text = "&<<";
		this.btnRemoveInternalStandars.UseVisualStyleBackColor = true;
		this.btnRemoveInternalStandars.Click += new System.EventHandler(btnRemoveInternalStandars_Click);
		this.btnAddInternalStandards.Location = new System.Drawing.Point(452, 277);
		this.btnAddInternalStandards.Margin = new System.Windows.Forms.Padding(4);
		this.btnAddInternalStandards.Name = "btnAddInternalStandards";
		this.btnAddInternalStandards.Size = new System.Drawing.Size(43, 31);
		this.btnAddInternalStandards.TabIndex = 13;
		this.btnAddInternalStandards.Text = "&>>";
		this.btnAddInternalStandards.UseVisualStyleBackColor = true;
		this.btnAddInternalStandards.Click += new System.EventHandler(btnAddInternalStandards_Click);
		this.label7.AutoSize = true;
		this.label7.Location = new System.Drawing.Point(539, 23);
		this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label7.Name = "label7";
		this.label7.Size = new System.Drawing.Size(40, 16);
		this.label7.TabIndex = 12;
		this.label7.Text = "内标:";
		this.label6.AutoSize = true;
		this.label6.Location = new System.Drawing.Point(32, 23);
		this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
		this.label6.Name = "label6";
		this.label6.Size = new System.Drawing.Size(40, 16);
		this.label6.TabIndex = 10;
		this.label6.Text = "元素:";
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).AllowUserToAddRows = false;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).AllowUserToDeleteRows = false;
		((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes).Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).BackgroundColor = System.Drawing.SystemColors.Control;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
		dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
		dataGridViewCellStyle1.BackColor = System.Drawing.SystemColors.Control;
		dataGridViewCellStyle1.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
		dataGridViewCellStyle1.ForeColor = System.Drawing.SystemColors.WindowText;
		dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight;
		dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
		dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).Columns.AddRange(this.colInternalTechSymbol, this.colInternalTechTech);
		this.dgvInternalIsotopes.HorCopy = false;
		((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes).Location = new System.Drawing.Point(32, 49);
		((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes).Margin = new System.Windows.Forms.Padding(4);
		((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes).Name = "dgvInternalIsotopes";
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).RowHeadersWidth = 51;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).RowTemplate.Height = 23;
		((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes).Size = new System.Drawing.Size(376, 663);
		((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes).TabIndex = 9;
		this.dgvInternalIsotopes.VerCopy = true;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(dgvInternalIsotopes_CellLeave);
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalIsotopes).CurrentCellChanged += new System.EventHandler(dgvInternalIsotopes_CurrentCellChanged);
		this.colInternalTechSymbol.DataPropertyName = "symbol";
		this.colInternalTechSymbol.HeaderText = "符号";
		this.colInternalTechSymbol.MinimumWidth = 6;
		this.colInternalTechSymbol.Name = "colInternalTechSymbol";
		this.colInternalTechSymbol.ReadOnly = true;
		this.colInternalTechSymbol.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
		this.colInternalTechSymbol.Width = 80;
		this.colInternalTechTech.DataPropertyName = "technique";
		this.colInternalTechTech.HeaderText = "方法";
		this.colInternalTechTech.MinimumWidth = 6;
		this.colInternalTechTech.Name = "colInternalTechTech";
		this.colInternalTechTech.Resizable = System.Windows.Forms.DataGridViewTriState.True;
		this.colInternalTechTech.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
		this.colInternalTechTech.Width = 120;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).AllowUserToAddRows = false;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).AllowUserToDeleteRows = false;
		((System.Windows.Forms.Control)(object)this.dgvInternalStandards).Anchor = System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).BackgroundColor = System.Drawing.SystemColors.Control;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
		dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
		dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
		dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft Sans Serif", 9f, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 134);
		dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
		dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
		dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
		dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).Columns.AddRange(this.colInternalSymbol, this.colInternalConcent, this.colInternalUnits, this.colInternalProfile);
		this.dgvInternalStandards.HorCopy = false;
		((System.Windows.Forms.Control)(object)this.dgvInternalStandards).Location = new System.Drawing.Point(521, 49);
		((System.Windows.Forms.Control)(object)this.dgvInternalStandards).Margin = new System.Windows.Forms.Padding(4);
		((System.Windows.Forms.Control)(object)this.dgvInternalStandards).Name = "dgvInternalStandards";
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).RowHeadersWidth = 51;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).RowTemplate.Height = 23;
		((System.Windows.Forms.Control)(object)this.dgvInternalStandards).Size = new System.Drawing.Size(490, 663);
		((System.Windows.Forms.Control)(object)this.dgvInternalStandards).TabIndex = 11;
		this.dgvInternalStandards.VerCopy = true;
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(dgvInternalStandards_CellFormatting);
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).CellLeave += new System.Windows.Forms.DataGridViewCellEventHandler(dgvInternalStandards_CellLeave);
		((System.Windows.Forms.DataGridView)(object)this.dgvInternalStandards).CurrentCellChanged += new System.EventHandler(dgvInternalStandards_CurrentCellChanged);
		this.dataGridViewTextBoxColumn1.DataPropertyName = "symbol";
		this.dataGridViewTextBoxColumn1.HeaderText = "符号";
		this.dataGridViewTextBoxColumn1.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1";
		this.dataGridViewTextBoxColumn1.ReadOnly = true;
		this.dataGridViewTextBoxColumn1.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
		this.dataGridViewTextBoxColumn1.Width = 80;
		this.dataGridViewTextBoxColumn2.DataPropertyName = "technique";
		this.dataGridViewTextBoxColumn2.HeaderText = "方法";
		this.dataGridViewTextBoxColumn2.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2";
		this.dataGridViewTextBoxColumn2.ReadOnly = true;
		this.dataGridViewTextBoxColumn2.Resizable = System.Windows.Forms.DataGridViewTriState.True;
		this.dataGridViewTextBoxColumn2.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
		this.dataGridViewTextBoxColumn2.Width = 120;
		this.dataGridViewTextBoxColumn3.DataPropertyName = "symbol";
		this.dataGridViewTextBoxColumn3.HeaderText = "符号";
		this.dataGridViewTextBoxColumn3.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn3.Name = "dataGridViewTextBoxColumn3";
		this.dataGridViewTextBoxColumn3.ReadOnly = true;
		this.dataGridViewTextBoxColumn3.Width = 80;
		this.dataGridViewTextBoxColumn4.DataPropertyName = "concentration";
		this.dataGridViewTextBoxColumn4.HeaderText = "浓度";
		this.dataGridViewTextBoxColumn4.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn4.Name = "dataGridViewTextBoxColumn4";
		this.dataGridViewTextBoxColumn4.Width = 60;
		this.dataGridViewTextBoxColumn5.DataPropertyName = "units";
		this.dataGridViewTextBoxColumn5.HeaderText = "单位";
		this.dataGridViewTextBoxColumn5.MinimumWidth = 6;
		this.dataGridViewTextBoxColumn5.Name = "dataGridViewTextBoxColumn5";
		this.dataGridViewTextBoxColumn5.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
		this.dataGridViewTextBoxColumn5.Width = 60;
		this.colInternalSymbol.DataPropertyName = "symbol";
		this.colInternalSymbol.HeaderText = "符号";
		this.colInternalSymbol.MinimumWidth = 6;
		this.colInternalSymbol.Name = "colInternalSymbol";
		this.colInternalSymbol.ReadOnly = true;
		this.colInternalSymbol.Width = 80;
		this.colInternalConcent.DataPropertyName = "concentration";
		this.colInternalConcent.HeaderText = "浓度";
		this.colInternalConcent.MinimumWidth = 6;
		this.colInternalConcent.Name = "colInternalConcent";
		this.colInternalConcent.Width = 130;
		this.colInternalUnits.DataPropertyName = "units";
		this.colInternalUnits.HeaderText = "单位";
		this.colInternalUnits.MinimumWidth = 6;
		this.colInternalUnits.Name = "colInternalUnits";
		this.colInternalUnits.SortMode = System.Windows.Forms.DataGridViewColumnSortMode.NotSortable;
		this.colInternalUnits.Width = 60;
		this.colInternalProfile.DataPropertyName = "profile";
		this.colInternalProfile.HeaderText = "配置";
		this.colInternalProfile.MinimumWidth = 6;
		this.colInternalProfile.Name = "colInternalProfile";
		this.colInternalProfile.Visible = false;
		this.colInternalProfile.Width = 60;
		base.AutoScaleDimensions = new System.Drawing.SizeF(8f, 16f);
		base.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
		base.ClientSize = new System.Drawing.Size(1037, 730);
		base.Controls.Add((System.Windows.Forms.Control)(object)this.dgvInternalIsotopes);
		base.Controls.Add(this.btnRemoveInternalStandars);
		base.Controls.Add((System.Windows.Forms.Control)(object)this.dgvInternalStandards);
		base.Controls.Add(this.label6);
		base.Controls.Add(this.btnAddInternalStandards);
		base.Controls.Add(this.label7);
		base.Margin = new System.Windows.Forms.Padding(4);
		base.Name = "FormStandard";
		base.ShowIcon = false;
		this.Text = "FormStandard";
		base.FormClosing += new System.Windows.Forms.FormClosingEventHandler(FormStandard_FormClosing);
		base.Load += new System.EventHandler(FormStandard_Load);
		((System.ComponentModel.ISupportInitialize)this.dgvInternalIsotopes).EndInit();
		((System.ComponentModel.ISupportInitialize)this.dgvInternalStandards).EndInit();
		base.ResumeLayout(false);
		base.PerformLayout();
	}
}
